cmake_minimum_required(VERSION 3.0)

project(test)

# 定义全局变量
# 静态库生成路径
set(LIB_PATH ${CMAKE_CURRENT_SOURCE_DIR}/lib)

# 可执行文件生成路径
set(EXEC_PATH ${CMAKE_CURRENT_SOURCE_DIR}/bin)

# 头文件路径
set(HEAD_PATH ${CMAKE_CURRENT_SOURCE_DIR}/include)

#静态库名字
set(CALC_LIB calc)
set(SORT_LIB sort)

#可执行程序名字
set(APP_NAME_1 test1)
set(APP_NAME_2 test2)

#添加子目录
add_subdirectory(calc)
add_subdirectory(sort)
add_subdirectory(test1)
add_subdirectory(test2)


